// 引入路由
import index from '@/components/coupon/index.vue'
import couponinfo from '@/components/coupon/info.vue'

const list = [
    {

        path: 'couponinfo/:cid',
        name: 'couponinfo',
        component: couponinfo
    },
    {

        path: 'index',
        name: 'couponindex',
        component: index
    }
]

//父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [
    {
        path: '/coupon',
        name: 'coupon',
        component: layout,
        children:list
    }
]